package com.yx.learn.dao;

import java.util.List;

import com.yx.learn.domain.Authority;

public interface AuthorityDao {
	
	//获取所有的权限
	public List<Authority> getAuthorities() throws Exception;
	//通过父权限id获取权限，异步加载
	public List<Authority> getAuthoritiesByPid(int pid) throws Exception;
	//多条件查询
	public List<Authority> getAuthoritiesByCondition(String hql) throws Exception;
	//通过id获取权限信息
	public Authority findById(int id) throws Exception;
	//增删改操作
	public void save(Authority authority) throws Exception;
	public void update(Authority authority) throws Exception;
	public void delete(Authority authority) throws Exception;

}
